﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true"
    CodeFile="InfoManager.aspx.cs" Inherits="Systems_InfoManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Scripts/jquery132min.js" type="text/javascript"></script>
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
    <script src="../Scripts/YJPopup.js" type="text/javascript"></script>
    <script type="text/javascript">
        var MyPopup;
        $(document).ready(function () {
            MyPopup = new YJPopup({
                contentDivID: "YJContentDiv",
                dragBarDivID: "YJDragBar",
                dragable: false,
                autoCreate: true
            })
        });
        function ShowPopup(ID) {
            MyPopup.Show("90%", "500px", "修改", "InfoModify.aspx?ID=" + ID + "&_" + Math.random());
        }
        function ClosePopup() {
            MyPopup.Hide();
        } 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <NC:FGridView ID="FGridView1" runat="server" AutoCreateNumber="true" DataKeyNames="ID"
        PageSize="10" Width="800px" ShowFooter="true">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="标题" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:TemplateField HeaderText="操作" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <input type="button" class="Gridbtn" value="修改" id="UpdateButton" onclick="ShowPopup('<%# Eval("ID") %>')">
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </NC:FGridView>
</asp:Content>
